rand_regex
Generates random strings and byte strings matching a regex.
Examples
use ;
let mut rng = from_seed;
// creates a generator for sampling strings
let gen = compile.unwrap;
// sample a few strings randomly
let samples = .sample_iter.take.;
// all Unicode characters are included when sampling
assert_eq!;
// you could use `regex_syntax::Hir` to include more options
let mut parser = new.unicode.build;
let hir = parser.parse.unwrap;
let gen = with_hir.unwrap;
let samples = .sample_iter.take.;
assert_eq!;
Acknowledgement
rand_regex
is heavily inspired by regex_generate
and proptest
.